#ifndef KEYBUTTON_H
#define KEYBUTTON_H

#include <QPushButton>

class KeyButton : public QPushButton
{
    Q_OBJECT
    bool m_state;
    int m_key;
public:
    explicit KeyButton(QWidget *parent = 0);
    void mouseReleaseEvent ( QMouseEvent * e );
    void mousePressEvent(QMouseEvent *e);
    void keyPressEvent(QKeyEvent *e);

    int GetKey(){return m_key;}
    void SetKey(int key){m_key=key;setText(QString::number(m_key));}
    
signals:
    
public slots:
    
};

#endif // KEYBUTTON_H
